/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package business.Imp;

import data.Imp.ImageServiceDAOImp;
import data.Services.ImageDAOService;
import java.util.List;
import model.entity.Image;
import model.entity.Post;

/**
 *
 * @author ninkuhack
 */
public class ImageServiceImp implements business.Service.ImageService{
    ImageDAOService ids = new ImageServiceDAOImp();

    @Override
    public Image getImageByID(int imageID) {
        return ids.getImageByID(imageID);
    }

    @Override
    public List<Image> getAllImages() {
        return ids.getAllImages();
    }

    @Override
    public boolean insertImage(Image image) {
        return ids.insertImage(image);
    }

    @Override
    public boolean updateImage(Image image) {
        return ids.updateImage(image);
    }

    @Override
    public boolean deleteImage(int imageID) {
        return ids.deleteImage(imageID);
    }

    @Override
    public boolean restoreImage(int imageID) {
        return ids.restoreImage(imageID);
    }

    @Override
    public List<Image> findImageByPostID(Post postID) {
        return ids.findImageByPostID(postID);
    }

    @Override
    public List<Image> findImageByPostID(int postID) {
        return ids.findImageByPostID(postID);
    }
    
}
